﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Program : Father
    {
        static void Main(string[] args)
        {
            Console.WriteLine("-------欢迎进入游戏世界-------");
            Console.WriteLine();
            Console.WriteLine("******************************");
            Console.WriteLine("**********猜拳，开始**********");
            Console.WriteLine("******************************");
            Console.WriteLine("出拳规则：1.剪刀  2.石头  3.布");
            Console.WriteLine("请选择对方的角色：<1.刘备 2.孙权 3.曹操>");
            int join = int.Parse(Console.ReadLine());
            Father father = new Father();
            father.Name1();
            switch (join)
            {
                case 1:
                    Console.WriteLine(father.Name + " " + "VS" + " " + "刘备" + " " + "对战");
                    CaiPan caiPan1 = new CaiPan();
                    caiPan1.kaishi1();
                    break;
                case 2:
                    Console.WriteLine(father.Name + " " + "VS" + " " + "孙权" + " " + "对战");
                    CaiPan caiPan2 = new CaiPan();
                    caiPan2.kaishi2();
                    break;
                case 3:
                    Console.WriteLine(father.Name + " " + "VS" + " " + "曹操" + " " + "对战");
                    CaiPan caiPan3 = new CaiPan();
                    caiPan3.kaishi3();
                    break;
                default:
                    Console.WriteLine("输入有误！");
                    break;
            }
        }
        public void main2()
        {
            Console.WriteLine("-------欢迎进入游戏世界-------");
            Console.WriteLine();
            Console.WriteLine("******************************");
            Console.WriteLine("**********猜拳，开始**********");
            Console.WriteLine("******************************");
            Console.WriteLine("出拳规则：1.剪刀  2.石头  3.布");
            Console.WriteLine("请选择对方的角色：<1.刘备 2.孙权 3.曹操>");
            int join = int.Parse(Console.ReadLine());
            Father father = new Father();
            father.Name1();
            switch (join)
            {
                case 1:
                    Console.WriteLine(father.Name + " " + "VS" + " " + "刘备" + " " + "对战");
                    CaiPan caiPan1 = new CaiPan();
                    caiPan1.kaishi1();
                    break;
                case 2:
                    Console.WriteLine(father.Name + " " + "VS" + " " + "孙权" + " " + "对战");
                    CaiPan caiPan2 = new CaiPan();
                    caiPan2.kaishi2();
                    break;
                case 3:
                    Console.WriteLine(father.Name + " " + "VS" + " " + "曹操" + " " + "对战");
                    CaiPan caiPan3 = new CaiPan();
                    caiPan3.kaishi3();
                    break;
                default:
                    Console.WriteLine("输入有误！");
                    break;
            }
        }
    }
}
    
